# Copyright (c) YugaByte, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied.  See the License for the specific language governing permissions and limitations
# under the License.
#

add_library(ql_ptree
            parse_tree.cc
            tree_node.cc
            list_node.cc
            pt_type.cc
            pt_name.cc
            pt_property.cc
            pt_keyspace_property.cc
            pt_table_property.cc
            pt_create_keyspace.cc
            pt_use_keyspace.cc
            pt_create_table.cc
            pt_alter_table.cc
            pt_create_type.cc
            pt_create_role.cc
            pt_grant.cc

            pt_create_index.cc
            pt_truncate.cc
            pt_drop.cc
            pt_dml.cc
            pt_dml_using_clause.cc
            pt_dml_using_clause_element.cc
            pt_select.cc
            pt_insert.cc
            pt_delete.cc
            pt_update.cc
            pt_transaction.cc
            pt_expr.cc
            pt_bcall.cc
            pt_option.cc
            process_context.cc
            selectivity.cc
            sem_context.cc
            sem_state.cc)

target_link_libraries(ql_ptree ql_util yb_client yb_util yb_bfql yb_common)
add_dependencies(ql_ptree yb_bfql)
